/**
 * 
 */
package uk.co.lunagroup.vladar.oncentersanity;

import java.io.*;
import javax.swing.*;


/**
 * Allows user to pick up file
 * @author Robert Kowalski
 * @version 0.1
 * @return string name of choosen file
 */
public class ChooseFile {


		public static String pickFile() {
						
				
		      JFileChooser chooser = new JFileChooser();
		      chooser.showOpenDialog(null);
		      File file = chooser.getSelectedFile();
		      String fileName =file.getAbsolutePath();
		       //
		       return fileName;
		       }
		}



